package heima.lm.oschina.constant;

import android.support.v4.app.Fragment;

import heima.lm.oschina.R;
import heima.lm.oschina.ui.fragment.DiscoverFragment;
import heima.lm.oschina.ui.fragment.GeneralFragment;
import heima.lm.oschina.ui.fragment.TweetFragment;
import heima.lm.oschina.ui.fragment.UserInfoFragment;

/**
 * Created by heJinfa on 2017/4/1.
 * 枚举Tab
 */

public enum HostTab {
    TAB_NEWS(0, R.string.main_tab_name_news, R.drawable.tab_icon_new, GeneralFragment.class)
    ,TAB_TWEET(1,R.string.main_tab_name_tweet,R.drawable.tab_icon_tweet,TweetFragment.class)
    ,TAB_QUICK(2,R.string.main_tab_name_quick,R.drawable.tab_icon_new,null)
    ,TAB_EXPLORE(3,R.string.main_tab_name_explore,R.drawable.tab_icon_explore, DiscoverFragment.class)
    ,TAB_ME(4,R.string.main_tab_name_my,R.drawable.tab_icon_me, UserInfoFragment.class);



    private int idn;
    private int resName;
    private int resIcon;
    private Class<? extends Fragment> clzz;

    HostTab(int idn, int resName, int resIcon, Class<? extends Fragment> clzz) {
        this.idn = idn;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clzz = clzz;
    }

    public int getIdn() {
        return idn;
    }

    public void setIdn(int idn) {
        this.idn = idn;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<? extends Fragment> getClzz() {
        return clzz;
    }

    public void setClzz(Class<? extends Fragment> clzz) {
        this.clzz = clzz;
    }
}
